package com.nulldev.util.web.HttpServer3.extensions.sse.event.io;

import java.io.Closeable;
import java.io.IOException;
import java.io.Writer;

import com.nulldev.util.web.HttpServer3.extensions.sse.event.SSEvent;

public interface SSEventStreamWriter extends Closeable {
	public void write(final SSEvent event) throws IOException;

	/**
	 * Replace writer associated with this instance
	 * 
	 * @param writer
	 */
	public void setWriter(final Writer writer);
}